import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] arr=new int[n];
        int i=0;
        for(i=0;i<n;i++)
        {
            try {
                arr[i]=sc.nextInt();
            }catch (Exception e){
                String x=sc.next();
                System.out.println("java.lang.NumberFormatException: For input string: \""+x+"\"");
                i--;
            }
        }
        System.out.println(Arrays.toString(arr));
    }
}
